package io.char_stream;

import java.io.*;

public class Demo04_BufferedReader_BufferedWriter {
    public static void main(String[] args) throws IOException {
        //extracted();

    }

    private static void extracted() throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:\\wangdao_study\\studyHard\\添狗.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("BufferedWriter.txt"));
        //底层是一个16KB的char[]数组

        int c;
        while((c = br.read()) != -1) {
            bw.write(c);
        }

        br.close();
        bw.close();
    }
}
